import path from 'node:path';
import { defineConfig } from '@rspress/core';
import { pluginApiDocgen } from '@rspress/plugin-api-docgen';

export default defineConfig({
  root: path.join(__dirname, 'doc'),
  lang: 'en',
  plugins: [
    pluginApiDocgen({
      entries: {
        button: './src/Button.ts',
      },
      apiParseTool: 'react-docgen-typescript',
    }),
  ],
  locales: [
    {
      lang: 'zh',
      title: '一个很棒的项目',
      description: '一个很棒的项目描述',
      label: '简体中文',
    },
    {
      lang: 'en',
      title: 'A awesome project',
      description: 'A awesome project description',
      label: 'English',
    },
  ],
});
